package _09_Method;
/**
 * long int 和 int long也是重载,只不过要加L区分
 * 
 * 返回值可以是表达式,只要最终类型和返回值类型匹配即可
 * @author lenovo
 *
 */
public class Method_09 {
	public static void main(String[] args) {
		m1(1,1l);
		int i = m2();
		//int c = 1+3;
		System.out.println(i);
		//首先调用方法m2(),在m2()中调用方法m3(),m3()返回1给m2(),m2再返回给主函数
		//i赋值m2的返回值1
	}
	public static int m2() {
		int c=2;
		//return true?1:0;
		return m3();
	}
	public static int m3() {
		return 1;
	}
	public static int m1(long i,int a) {
		int c = 2;
		return true?1:0;
	}
	public static int m1(int i, long a) {
		return m1(1l,1);
	}
}
